<%-- 
    Document   : Create
    Created on : 16-gen-2015, 18.28.25
    Author     : takamflore

--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
        <title>Create Event</title>
    </head>
    <body>
         <script>
        $(function() {
            $('input[name=date]').datepicker();
            $('input[name=hour]').datepicker();
    var $radios = $('input:radio[name=type]');
    if($radios.is(':checked') === false) {
        $radios.filter('[value=Male]').prop('checked', true);
    }
        });
    </script>
        <form action="CreateEventServlet" method="POST" > 
            Event Name:<input type="text" name="eventName" value="${event.eventName}"/>
             <br />
             Description:<Textarea name="description"></Textarea>
                <br /> 
               Date:<input type="text" name="dob" value="<fmt:formatDate pattern='MM/dd/yyyy' value='${event.date}' />" /> 
                 <br />
               Hour:<input type="text" name="hour" value="<fmt:formatDate value='${event.hour}' pattern='HH:mm:ss' />" />
                <br />
                Addresse:<input type="text" name="address"/>
               <br />
                Type:<input type="radio" name="Outdoor"/><label> Outdoor</label> 
                     <input type="radio" value="Indoor"/><label> Indoor</label>
                <br />
                Weather Information:<input type="text" name="eventName"/>
                <br />
                Invited:<Textarea name="eventName"></Textarea>
                <br />
               <input type="submit" value="Create" />  
        </form>
    </body>
</html>
